package org.jeecgframework.web.system.pojo.base;

import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;

import org.jeecgframework.core.util.ApplicationContextUtil;
import org.jeecgframework.web.service.ZyFactoryRecordServiceI;


/**
 * 
 * @author xiul
 * 2016-6-17 上午10:52:19
 * Description 检查 出厂记录SN是否和现有数据库中的记录重复 线程
 */
public class ZyUpFactoryRecordCheckSnThread implements Callable<String>{
	
	private List<Map<String, Object>> snList;
	
	private List<Map<String, Object>> snMapList;
	
	private int begin;
	
	private int end;
	
	private static ZyFactoryRecordServiceI zyFactoryRecordServiceI = ApplicationContextUtil.getBean("zyFactoryRecordService");
	
	public ZyUpFactoryRecordCheckSnThread(){}
	
	public ZyUpFactoryRecordCheckSnThread(List<Map<String, Object>> snList,List<Map<String, Object>> snMapList,int begin,int end){
		this.snList = snList;
		this.snMapList = snMapList;
		this.begin = begin;
		this.end = end;
	}
	
	@Override
	public String call() throws Exception {
		return zyFactoryRecordServiceI.checkSnRepeat(snList,snMapList, begin, end);
	}
	
	
	public List<Map<String, Object>> getSnList() {
		return snList;
	}
	public void setSnList(List<Map<String, Object>> snList) {
		this.snList = snList;
	}
	public int getBegin() {
		return begin;
	}
	public void setBegin(int begin) {
		this.begin = begin;
	}
	public int getEnd() {
		return end;
	}
	public void setEnd(int end) {
		this.end = end;
	}
	public List<Map<String, Object>> getSnMapList() {
		return snMapList;
	}
	public void setSnMapList(List<Map<String, Object>> snMapList) {
		this.snMapList = snMapList;
	}
	
	
	
	
}
